from rest_framework import serializers


from activities.models import Activities



class ActivityListSerializer(serializers.ModelSerializer):
    """活动列表序列化器"""
    class Meta:
        model = Activities
        fields = ('id','cover','start_time','city','status')


class ActivityDetailSerializer(serializers.ModelSerializer):
    """活动详情序列化器"""
    class Meta:
        model = Activities
        exclude = ('city',)
